<html>

    <body>
            <h1>游戏中...</h1>
            <a href="javascript:void(0)" id="btn_logout">退出</a>
            <a href="javascript:void(0)" id="btn_pay">支付</a>
    </body>
    <script type="text/javascript" src="http://static.m.youxi53.com/static/sdkmobile/js/jquery-1.11.3.min.js"></script>
    <script src="GameSdk.js"></script>
    <script>
        $(function(){
            GameSdk.init({'cp_id':1,'game_id':1}, function(respon){
                console.log(respon);
            });
        });
        $('#btn_logout').click(function(){
            GameSdk.logout();
        });
        $('#btn_pay').click(function(){
            //cp创建订单
            var param = {
                platform_uid:1,
                cp_id:1,
                game_id:1,
                cp_order:'111111111111111111111111111',
                cp_role_servername:'s1',
                cp_role_name:'鱼',
                product_name:'商品名称',
                fee:100,
                ext:'a=1&b=2',
                timestamp:1111111111,
                sign:'xxxxxxxxxxxxxxxxxxx'
            };
            GameSdk.pay(param);
        });
    </script>
</html>
